#{extends 'main.html' /}

#{set title:'Relationship Home Page' /}

<h1>Relationship Home Page</h1>
</br>
</br>
</br>
</br>

#{if msg. contains ("Sucess")}
#{sucess message:msg/}

#{/if}

#{if msg. contains ("fail")}
#{error2 message:msg/}

#{/if}

#{else}

#{/else}

#{else}
Negative
#{/else}

#{if flash.error}
<p style="color:#c00">
	${flash.error}
</p>
#{/if}

<ul>
	<li>
		<a href="@{Relationships.newRelationshipTagsForm()}">Create Relation Among Tags</a>
	</li>
	<li>
		<a href="@{Relationships.viewAllTagsRelationship()}">Browse All Realtionships</a>
	</li>
	<li>
		<a href="@{Ttags.tagShow()}">Display A Specific Tag</a>
	</li>
	<li>
		<a href="@{Application.index()}">Home Page</a>
	</li>
</ul>
<form action="@{Relationships.createTagsRelations()}" method="GET">

	User id -- The Current User id Have to be passed in this Hidden field
	<input type="hidden" name="testingUserId" />
	<br />
	<br />
	Relationship Name
	<input type="text" name="realName" />
	<br />
	<br />
	Relationship Source
	<input type="text" name="realSource" />
	<br />
	<br />
	Relationship Destination
	<input type="text" name="realDest" />

	<br />
	<br />
	<input type="submit" value="Submit" name = "Submit" />
	<br />
	<br />
	<br />
</form>